<h1>Mc payment List</h1>

<table class='sortable' id='sortable'>
  <thead>
    <tr>
      <th>Id</th>
      <th>Case type</th>
      <th>Credit line</th>
      <th>Days</th>
      <th>Person</th>
      <th>Client</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($payment_list as $payment): ?>
    <tr>
      <td><a href="<?php echo url_for('mc_payment/show?id='.$payment['id']) ?>"><?php echo $payment->getid() ?></a></td>
      <td><?php echo $payment->getcase_type() ?></td>
      <td><?php echo $payment->getcredit_line() ?></td>
      <td><?php echo $payment->getdays() ?></td>
      <td><?php echo $payment->getperson_id() ?></td>
      <td><?php echo $payment->getclient_id() ?></td>
      <td><?php echo $payment->getcreated_at() ?></td>
      <td><?php echo $payment->getupdated_at() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('mc_payment/new?client_id='.$client_id) ?>">New</a>

	<?php slot('submenu') ?>
	<ul>
		<li><?php echo link_to(image_tag('contact info.png', array('title'=>"Contact Info", 'width'=>'65px')), 'mc/show?id='.$client_id) ?></li>
		<li><?php echo link_to(image_tag('officers.png', array('title'=>"Officers", 'width'=>'65px')),'officers/index?client_id='.$client_id) ?></li>
		<li><?php echo link_to(image_tag('managementteam.png', array('title'=>"ManagementTeam", 'width'=>'65px')),'management_team/index?client_id='.$client_id) ?></li>
		<li><?php echo link_to(image_tag('companydescription.png', array('title'=>"Company Description", 'width'=>'65px')), 'company_description/index?client_id='.$client_id) ?></li>
		<li><?php echo link_to(image_tag('payment arrangements.png', array('title'=>"Payment Arrangements", 'width'=>'65px')), 'mc_payment/index?client_id='.$client_id) ?></li>
		<li><?php echo link_to(image_tag('transaction history.png', array('title'=>"Transaction History", 'width'=>'65px')), 'transaction/index?client_id='.$client_id) ?></li>		
	</ul>
	<?php end_slot() ?>